package com.ch.forum.controller;

import com.ch.forum.bo.ResponseResult;
import com.ch.forum.model.RewardModel;
import com.ch.forum.service.RewardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/reward")
@RestController
public class RewardController {

    @Autowired
    private RewardService rewardService;

    @PostMapping()
    public ResponseResult reward(RewardModel model){
        return rewardService.add(model);
    }
}
